export const PERMISSION_KEY_BASE_LIST = 'list';
export const PERMISSION_KEY_BASE_ADD = 'add';
export const PERMISSION_KEY_BASE_UPDATE = 'update';
export const PERMISSION_KEY_BASE_DELETE = 'delete';
export const PERMISSION_KEY_BASE_MULTIPLE_DELETE = 'multiple-delete';
export const PERMISSION_KEY_BASE_EXPORT = 'export';
export const PERMISSION_KEY_BASE_MULTIPLE_ADD = 'multiple-add';

// 机构管理权限 KEY
export const PERMISSION_KEY_ORG = {
  add: `system:org:${PERMISSION_KEY_BASE_ADD}`,
  delete: `system:org:${PERMISSION_KEY_BASE_DELETE}`,
  multipleDelete: `system:org:${PERMISSION_KEY_BASE_MULTIPLE_DELETE}`,
  update: `system:org:${PERMISSION_KEY_BASE_UPDATE}`,
  export: `system:org:${PERMISSION_KEY_BASE_EXPORT}`,
  list: `system:org:${PERMISSION_KEY_BASE_LIST}`,
};

// 菜单管理权限 KEY
export const PERMISSION_KEY_MENU = {
  add: `system:menu:${PERMISSION_KEY_BASE_ADD}`,
  delete: `system:menu:${PERMISSION_KEY_BASE_DELETE}`,
  update: `system:menu:${PERMISSION_KEY_BASE_UPDATE}`,
  list: `system:menu:${PERMISSION_KEY_BASE_LIST}`,
  multipleAdd: `system:menu:${PERMISSION_KEY_BASE_MULTIPLE_ADD}`,
};

// 角色管理权限 KEY
export const PERMISSION_KEY_ROLE = {
  add: `system:role:${PERMISSION_KEY_BASE_ADD}`,
  delete: `system:role:${PERMISSION_KEY_BASE_DELETE}`,
  update: `system:role:${PERMISSION_KEY_BASE_UPDATE}`,
  list: `system:role:${PERMISSION_KEY_BASE_LIST}`,
  addRoleMenu: `system:role:menu-permission`,
  addRoleData: `system:role:data-permission`,
};

// 用户管理权限 KEY
export const PERMISSION_KEY_USER = {
  add: `system:user:${PERMISSION_KEY_BASE_ADD}`,
  delete: `system:user:${PERMISSION_KEY_BASE_DELETE}`,
  multipleDelete: `system:user:${PERMISSION_KEY_BASE_MULTIPLE_DELETE}`,
  update: `system:user:${PERMISSION_KEY_BASE_UPDATE}`,
  list: `system:user:${PERMISSION_KEY_BASE_LIST}`,
  addUserRole: `system:user:user-role`,
  resetPassword: `system:user:reset-pssword`,
};

// 操作日志查看权限 KEY
export const PERMISSION_KEY_OPERATE_LOG = {
  list: `system:operate-log:${PERMISSION_KEY_BASE_LIST}`,
  export: `system:operate-log:${PERMISSION_KEY_BASE_EXPORT}`,
};

// 登录日志查看权限 KEY
export const PERMISSION_KEY_LOGIN_LOG = {
  list: `system:login-log:${PERMISSION_KEY_BASE_LIST}`,
  export: `system:login-log:${PERMISSION_KEY_BASE_EXPORT}`,
};

// 字典类型管理权限 KEY
export const PERMISSION_KEY_DICT_TYPE = {
  add: `system:dict-type:${PERMISSION_KEY_BASE_ADD}`,
  delete: `system:dict-type:${PERMISSION_KEY_BASE_DELETE}`,
  multipleDelete: `system:dict-type:${PERMISSION_KEY_BASE_MULTIPLE_DELETE}`,
  update: `system:dict-type:${PERMISSION_KEY_BASE_UPDATE}`,
  list: `system:dict-type:${PERMISSION_KEY_BASE_LIST}`,
  // quickList: `system:user:quick-list`,
  quickList: '', // 暂不控制
};

// 字典管理权限 KEY
export const PERMISSION_KEY_DICT = {
  add: `system:dict:${PERMISSION_KEY_BASE_ADD}`,
  delete: `system:dict:${PERMISSION_KEY_BASE_DELETE}`,
  multipleDelete: `system:dict:${PERMISSION_KEY_BASE_MULTIPLE_DELETE}`,
  update: `system:dict:${PERMISSION_KEY_BASE_UPDATE}`,
  list: `system:dict:${PERMISSION_KEY_BASE_LIST}`,
};

// 设备厂商管理权限 KEY
export const PERMISSION_KEY_BRAND = {
  add: `terminal:brand:${PERMISSION_KEY_BASE_ADD}`,
  delete: `terminal:brand:${PERMISSION_KEY_BASE_DELETE}`,
  multipleDelete: `terminal:brand:${PERMISSION_KEY_BASE_MULTIPLE_DELETE}`,
  update: `terminal:brand:${PERMISSION_KEY_BASE_UPDATE}`,
  list: `terminal:brand:${PERMISSION_KEY_BASE_LIST}`,
};

// 设备模块管理权限 KEY
export const PERMISSION_KEY_TERMINAL_MODULE = {
  add: `terminal:module:${PERMISSION_KEY_BASE_ADD}`,
  delete: `terminal:module:${PERMISSION_KEY_BASE_DELETE}`,
  multipleDelete: `terminal:module:${PERMISSION_KEY_BASE_MULTIPLE_DELETE}`,
  update: `terminal:module:${PERMISSION_KEY_BASE_UPDATE}`,
  list: `terminal:module:${PERMISSION_KEY_BASE_LIST}`,
};

// 设备类型管理权限 KEY
export const PERMISSION_KEY_TERMINAL_TYPE = {
  add: `terminal:type:${PERMISSION_KEY_BASE_ADD}`,
  delete: `terminal:type:${PERMISSION_KEY_BASE_DELETE}`,
  multipleDelete: `terminal:type:${PERMISSION_KEY_BASE_MULTIPLE_DELETE}`,
  update: `terminal:type:${PERMISSION_KEY_BASE_UPDATE}`,
  list: `terminal:type:${PERMISSION_KEY_BASE_LIST}`,
};

// 设备型号管理权限 KEY
export const PERMISSION_KEY_TERMINAL_MODLE = {
  add: `terminal:model:${PERMISSION_KEY_BASE_ADD}`,
  delete: `terminal:model:${PERMISSION_KEY_BASE_DELETE}`,
  multipleDelete: `terminal:model:${PERMISSION_KEY_BASE_MULTIPLE_DELETE}`,
  update: `terminal:model:${PERMISSION_KEY_BASE_UPDATE}`,
  list: `terminal:model:${PERMISSION_KEY_BASE_LIST}`,
};

// 设备管理权限 KEY
export const PERMISSION_KEY_TERMINAL_MANAGE = {
  add: `terminal:manage:${PERMISSION_KEY_BASE_ADD}`,
  delete: `terminal:manage:${PERMISSION_KEY_BASE_DELETE}`,
  multipleDelete: `terminal:manage:${PERMISSION_KEY_BASE_MULTIPLE_DELETE}`,
  update: `terminal:manage:${PERMISSION_KEY_BASE_UPDATE}`,
  list: `terminal:manage:${PERMISSION_KEY_BASE_LIST}`,
};
